
# from langchain.llms import OpenAI
from openai import OpenAI
# from langchain.prompts import PromptTemplate
# from langchain.chains import LLMChain
import os
from dotenv import load_dotenv

load_dotenv()

#  "model": "deepseek-coder-v2-lite-Instruct",
#       "apiBase": "http://aicode.cnsuning.com/v1",
#       "provider": "openai",
#       "apiKey": "sk-QA-MlGvYCo1vy3nPRvAxxw",
#       "title": "DeepSeek-Coder-v2-Lite-Instruct"
client= OpenAI(api_key=os.getenv("OPENAI_API_KEY"),
            base_url="https://api.siliconflow.cn/v1")

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V2.5",  # 或其他可用模型
    messages=[
        {
            "role": "user",
            "content": "请给我一个关于星联公司的简短介绍?"
        }
    ],
    temperature=0.7
)
# 打印结果
print(response.choices[0].message.content)